package tt.dz.egobus.servicemanager.dao;

import tt.dz.egobus.servicemanager.base.dao.ExtendDao;
import tt.dz.egobus.servicemanager.entities.DriverRegisterBusRelative;

import java.util.List;

/**
 * @author Anson
 * @date 17-3-21
 * @name 司机绑定用户
 * @since 1.0.2
 */
public interface DriverRegisterBusRelativeDao extends ExtendDao<DriverRegisterBusRelative, String> {

    /**
     * @param busId 车辆信息
     * @author Anson
     * @date 17-5-22
     * @name 删除车辆绑定关系
     * @since 1.0.4
     */
    int deleteDriverRelativeByBusId(String busId);

    /**
     * @param needHandlerDriverDbStatusActive 当前需要转换到激活的状态的司机
     * @author Anson
     * @date 17-9-8
     * @name 修改当前抢单结束, 但需要修改当前司机抢单状态为激活的状态
     * @since 1.0.7
     */
    int terminalBusinessDriverStatus(List<String> needHandlerDriverDbStatusActive);
}


